import request from '@/utils/request'


// 渠道总表
export function getChannelMasterTableListpage(params) {
  return request({
    url: '/AttractInvestment/channel/masterTable/getList',
    method: 'get',
    params
  })
}
// 渠道客户
export function getChannelCustomtpage(params) {
  return request({
    url: '/AttractInvestment/channel/custom/getList',
    method: 'get',
    params
  })
}
// 渠道维护
export function getChannelMaintainpage(params) {
  return request({
    url: '/AttractInvestment/channel/maintain/getList',
    method: 'get',
    params
  })
}
// 我的渠道
export function getMyChannelpage(params) {
  return request({
    url: '/AttractInvestment/channel/oneself/getList',
    method: 'get',
    params
  })
}
// 我的渠道
export function crea1teProcess(params) {
  return request({
    url: '/AttractInvestment/channel/add',
    method: 'post',
    params
  })
}
//3-1 ping mtd 
// 新增渠道
export function addChannel(data) {
  return request({
    url: '/AttractInvestment/channel/add',
    method: 'post',
    params: data
  })
}
// @/api/AttractInvestment/channel/index.js

// 获取渠道详情 by ID
export function getChannelById(id) {
  return request({
    url: '/AttractInvestment/channel/' + id,
    method: 'get'
  })
}

// 更新渠道信息
export function updateChannel(data) {
  return request({
    url: '/AttractInvestment/channel/update',
    method: 'put',
    data: data
  })
}
